x86: Fix debug build.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 15 Feb 2008 14:16:42 +0000 (14:16 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 15 Feb 2008 14:16:42 +0000 (14:16 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm/shadow/multi.c

index eccf0c2dd0599be46a6f281ce9792623e84f703e..2103fe0d5b7e7377caa7a32bdb8ed26ef3df2c62 100644 (file)
@@ -2768,7 +2768,7 @@ static int sh_page_fault(struct vcpu *v,
         if ( regs->error_code == (PFEC_write_access | PFEC_page_present) )
         {
             fast_emul = 1;
-            gmfn = v->arch.paging.shadow.last_emulated_mfn;
+            gmfn = _mfn(v->arch.paging.shadow.last_emulated_mfn);
             perfc_incr(shadow_fault_fast_emulate);
             goto early_emulation;
         }
@@ -3068,7 +3068,7 @@ static int sh_page_fault(struct vcpu *v,
         if ( !fast_emul )
         {
             v->arch.paging.shadow.last_emulated_frame = va >> PAGE_SHIFT;
-            v->arch.paging.shadow.last_emulated_mfn = gmfn;
+            v->arch.paging.shadow.last_emulated_mfn = mfn_x(gmfn);
             v->arch.paging.last_write_emul_ok = 1;
         }
     }